package com.tsd.jxc.stock.dao;

import com.tsd.common.vo.BatchDeleteLogicVo;
import com.tsd.core.vo.PageBean;
import com.tsd.jxc.stock.entity.JxcStockInventoryItem;
import com.tsd.jxc.stock.entity.JxcStockInventoryItemExt;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：JxcStockInventoryItemMapper
 *
 * @author Hillpool
 * @date 2022/07/29 15:06:41
 */
public interface JxcStockInventoryItemMapper {

    JxcStockInventoryItem selectByPrimaryKey(Long id);

    JxcStockInventoryItemExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(JxcStockInventoryItem record);

    int insertSelective(JxcStockInventoryItem record);

    int insertList(@Param("list") List<JxcStockInventoryItemExt> list);

    int updateByPrimaryKey(JxcStockInventoryItem record);

    int updateByPrimaryKeySelective(JxcStockInventoryItem record);

    int updateList(@Param("list") List<JxcStockInventoryItemExt> list);

    List<JxcStockInventoryItemExt> selectByEntity(JxcStockInventoryItemExt record);

    List<JxcStockInventoryItemExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<JxcStockInventoryItemExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<JxcStockInventoryItemExt> selectByParams(@Param("params") Map<String, Object> params);

    List<JxcStockInventoryItemExt> selectGoodsByInventoryIdByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<JxcStockInventoryItemExt> selectGoodsByInventoryId(@Param("params") Map<String, Object> params);

    int deleteLogicByIdList(BatchDeleteLogicVo logicVo);

    int deleteLogicByInventoryList(BatchDeleteLogicVo logicVo);
}